#include <stdio.h>
#include <string.h>
#include "ipmi.h"
#include "ipmi_netfn.h"
#include "netfn_0x06_cmd_0x3c.h"

uint16 CloseSession(uint8* request_data, uint16 request_data_size, uint8* response_data)
{
    CloseSessionReq* req = (CloseSessionReq*)request_data;
    CloseSessionRes* res = (CloseSessionRes*)response_data;
    res->CompletionCode = CC_NORMALLY;
    uint16 response_data_size = sizeof(CloseSessionRes);

    return response_data_size;
}

void init_command(cmd_assigments_t* cmd_assigments)
{
    cmd_assigments->privilege = 0x02;
    cmd_assigments->channel = 0x01;
    cmd_assigments->command_entrance = &CloseSession;
}   

